<?php
namespace Home\Controller;
use Think\Controller;
class IndexController extends Controller {
    public function index(){
$top_nav=D('nav')->where('pid=0 and is_hom=1')->select();
  // print_r($top_nav);die;

  $this->assign('index_nav',$top_nav);
$this->display();

}
}